<?php
namespace Seller\Model;
class GoodsSupplyModel extends BaseModel {
    
    //自动认证
    protected $_validate = array(
        array( 'customer_id' , 'require' , '非法信息'),
        array( 'goods_id' , 'require' , '非法信息'),
        array('market_price','/^[0-9]+(\.[0-9]{1,2})?$/','市场价格式错误！'),
        array('cost_price','/^[0-9]+(\.[0-9]{1,2})?$/','成本价格式错误'),
        array('price','/^[0-9]+(\.[0-9]{1,2})?$/','供货价格式错误'), 
        array('stock_num','/^[0-9]+$/','库存不能为空')
    );
    
}